package com.lifeng.patterns.spring;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: lifeng
 * @create: 2020/9/21 16:40
 * 在spring销毁bean之前调用
 */
@Component
public class SystemStop implements DisposableBean {
    @Override
    public void destroy() throws Exception {
        System.out.println("SystemStop 销毁。。。");
    }
}
